package dws_api

import (
	"github.com/gin-gonic/gin"
	"server/middleware"
)

type DwsApiRouter struct {
}


func (s *DwsApiRouter) InitDwsApiRouter(Router *gin.RouterGroup) {
	dwsApiRouter := Router.Group("dwsApi").Use(middleware.OperationRecord())
	dwsApiRouterWithoutRecord := Router.Group("dwsApi")
	var dwsApiApi = DwsApiApi{}
	{
		dwsApiRouter.POST("createDwsApi", dwsApiApi.CreateDwsApi)
		dwsApiRouter.DELETE("deleteDwsApi", dwsApiApi.DeleteDwsApi)
		dwsApiRouter.DELETE("deleteDwsApiByIds", dwsApiApi.DeleteDwsApiByIds)
		dwsApiRouter.PUT("updateDwsApi", dwsApiApi.UpdateDwsApi)
	}
	{
		dwsApiRouterWithoutRecord.GET("findDwsApi", dwsApiApi.FindDwsApi)
		dwsApiRouterWithoutRecord.GET("getAllDwsApis", dwsApiApi.GetAllDwsApis)
		dwsApiRouterWithoutRecord.GET("getDwsApiList", dwsApiApi.GetDwsApiList)
		dwsApiRouterWithoutRecord.POST("getDwsApi", dwsApiApi.GetDwsApi)
		dwsApiRouterWithoutRecord.GET("initDwsApi", dwsApiApi.InitDwsApi)
	}
	{
		dwsApiRouter.POST("getData", dwsApiApi.GetData)
	}
}
